<template>
  <div class="collect-page">
    <!-- 我的收藏 -->
    <van-nav-bar
      title="我的收藏"
      left-text="返回"
      left-arrow
      @click-left="$router.back()"
    />
<CollectItem v-for="(item,index) in list" :key="index" :item="item"></CollectItem>
  </div>
</template>

<script>
import { getCollect } from '@/api/find'
import CollectItem from '@/components/CollectItem.vue'
export default {
  components: {
    CollectItem
  },
  data () {
    return {
      loading: false,
      finished: false,
      list: []

    }
  },
  methods: { },
  async created () {
    const { body } = await getCollect()
    // console.log(body)
    this.list = body
    // console.log(body)
  }

}

</script>

<style >

</style>
